home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Fonts / IntegerFaceMetrics.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  601 b   |  28 lines  |  [TEXT/CWIE]

  1. // IntegerFaceMetrics.h
  2.  
  3. #ifndef IntegerFaceMetrics_h
  4. #define IntegerFaceMetrics_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class Face;
  11.  
  12. class IntegerFaceMetrics: public FontInfo
  13.   {
  14.     public:
  15.         IntegerFaceMetrics()                            {}
  16.         IntegerFaceMetrics( const Face& );
  17.         
  18.         static const IntegerFaceMetrics& Current();
  19.         
  20.         int16 Ascent() const                { return ascent; }
  21.         int16 Descent() const            { return descent; }
  22.         int16 Leading() const            { return leading; }
  23.         int16 UnleadedHeight() const    { return ascent + descent; }
  24.         int16 LeadedHeight() const        { return ascent + descent + leading; }
  25.   };
  26.  
  27. #endif
  28.